#include<iostream>
#include<string>

using namespace std;

struct Student
{
	string name;
	int age;
	int score;
};

void printStu1(Student s)
{
	cout << s.name << " " << s.age << " " << s.score << endl;
}

void printStu2(Student * s)
{
	s->age = 23;
	cout << s->name << " " << s->age << " " << s->score << endl;
}

int main()
{
	Student s = { "Tom",21,67 };

	printStu1(s);
	cout << s.age << endl;
	printStu2(&s);
	cout << s.age << endl;



	system("pause");

	return 0;
}